﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SportsStore.Model;

namespace SportsStore.Builder
{
  public class CartItemBuilder : Builder<CartItem>
  {
    public CartItemBuilder(int productId, string shoppingCartId, int quantity)
    {
      Instance = new CartItem(productId, shoppingCartId, quantity);
    }

    public CartItemBuilder WithProduct(Product product)
    {
      Instance.Product = product;
      return this;
    }
  }
}
